/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-04-12
 * Time: 21:17
 */
public class Test {
    public static void main(String[] args) {
        //CPU cpu = new CPU(2200);
        CPU cpu = new CPU();
        cpu.setSpeed(2200);
        HardDisk disk = new HardDisk();
        disk.setAmount(200);
        PC pc = new PC();
        pc.setCPU(cpu);
        pc.setHardDisk(disk);
        pc.show();
    }
}
